# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=station
pkgver=2.1.2
pkgrel=0
pkgdesc="Convergent terminal emulator"
# armhf blocked by extra-cmake-modules
# s390x and riscv64 blocked by mauikit
arch="all !armhf !s390x !riscv64"
url="https://invent.kde.org/maui/station"
license="GPL-3.0-or-later"
depends="
	qmltermwidget
	"
makedepends="
	extra-cmake-modules
	kcoreaddons-dev
	ki18n-dev
	mauikit-dev
	mauikit-filebrowsing-dev
	qt5-qtbase-dev
	qt5-qtdeclarative-dev
	samurai
	"
source="https://download.kde.org/stable/maui/station/$pkgver/station-$pkgver.tar.xz"
options="!check" # No tests

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr
	cmake --build build
}

check() {
	cd build
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
17a96539ac4645be934b57011e1c427c6a0545b1b1b86bed199b32dd8fa413acb7d989d0b426c1171abe97a814b770bdc3f536fbf48cbdffa38d67fae4a3cb9e  station-2.1.2.tar.xz
"
